package com.movitech.mobile.cz.base.modules.config;

/**
 * 注册状态（外网）枚举
 * @author Jack.Gong
 * @since 2018-03-07
 *
 */
public enum RegisterStatusEnum {
	
	STORE_APPROVE_ING("入库审批中", "1"),
	PENDING_MODIFY("待修改", "2"),
	QUALIFIED("合格", "3"),
	UNQUALIFIED("不合格", "4"),
	PENDING_WATCH("待观察", "5"),
	BLACKLIST("黑名单", "6");
	
	private String desc;
	private String code;
	
	private RegisterStatusEnum(String desc, String code){
		this.desc = desc;
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public static String getDesc(String code) {
		for (RegisterStatusEnum c : RegisterStatusEnum.values()) {
			if (c.getCode().equals(code)) {
				return c.getDesc();
			}
		}
		return null;
	}
	
}
